What do you mean it works when you bypass it, do you mean that the compressor is not kicking on? Maybe your pressure switch is malfunctioning. There are motors that control the modes, the temperature of the air and the recirculation for the blower motor. If these motors fail it may cause the issue your experiencing. Also there is the ac amplifier and several sensors that give information to the amplifier to control the temperature that is set.